/**************************************
 *
 * VLOOK 模板主题
 *
 * powered by MAX°孟兆
 *
 * QQ Group: 805502564
 * Telegram Channel: t.me/vlook_markdown
 * email: maxchow@qq.com
 *
 *************************************/

@import "../font";
@import "../color";
@import "../common";

// 主题信息
@themeVer: "V25.0";
@themeName: "vlook-geek";
@themeDesc: "Geek";

// 指定字体主题
.applyFontStyle(local);
// .applyFontStyle(sans);
// 指定主题配套的圆角
.applyThemeRadius(big);
// 文档背景使用图片
.applyDocBgImg(@docBgImgLight_EC, @docBgImgDark_EC);

:root {
    --thm-fav-logo-lg: url("");
    --thm-fav-logo-dk: url("");
}

// 主题主色
@theme1: #191C23;//#292C33;
@theme2: #E62E4D;
@theme3: #D98982;
@theme1Dark: #F8FAFD;//#E8EAED;//#4F5663;
@theme1Alt: #E8EAED;//#E8EAED;
@theme1AltDark: #191C23;//#202228;
@theme2Dark: #E73754;
@theme2Alt: #FCE4E8;
@theme2AltDark: #520A16;
@theme1Fade: rgba(red(@theme1), green(@theme1), blue(@theme1), @accOpacity);
@theme2Fade: rgba(red(@theme2), green(@theme2), blue(@theme2), @accOpacity);
@theme2FadeDark: rgba(red(@theme2), green(@theme2), blue(@theme2), 30%);

// 标题色
@headerColor: @theme3;
@headerColorDark: @theme3;
// 渐变标题色 h1-h5
// @lgHeaderBg: linear-gradient(135deg, @theme3 25%, @theme2);
// @lgHeaderBgClip: text;
// @lgHeaderColor: transparent;
@lgH1Bg: linear-gradient(135deg, @theme3 25%, @theme2);
@lgH2Bg: @lgH1Bg;
@lgH3Bg: @lgH1Bg;
@lgH4Bg: @lgH1Bg;
@lgH5Bg: @lgH1Bg;
@lgH1BgClip: text;
@lgH2BgClip: @lgH1BgClip;
@lgH3BgClip: @lgH1BgClip;
@lgH4BgClip: @lgH1BgClip;
@lgH5BgClip: @lgH1BgClip;
@lgH1Color: transparent;
@lgH2Color: @lgH1Color;
@lgH3Color: @lgH1Color;
@lgH4Color: @lgH1Color;
@lgH5Color: @lgH1Color;
// 6 级标题前缀内容
@h6BeforeContent: "❖ ";
// @tocHeaderNumColor: @docTextColorLightFade;
// @contentHeaderNumColor: @theme1Fade;//@themeForeColorFade;
@contentHeaderNumOpacity: .5;
@headerBackground: linear-gradient(0deg, var(--h-bg-start), var(--h-bg-end));
@headerPadding: 5px 0 5px 10px;
//@headerLetterSpacing: 0;//0.3em;
// 标题的上边框
@h1BorderTop: 9px solid var(--h-box-shadow);
@h2BorderTop: 7px solid var(--h-box-shadow);
@h3BorderTop: 5px solid var(--h-box-shadow);
@h4BorderTop: 3px solid var(--h-box-shadow);
@h5BorderTop: 1px solid var(--h-box-shadow);
@h6BorderTop: 0;
@h1Margin: 3em 0 0 0;
@h2Margin: 3em 0 0 0;
@h3Margin: 2em 0 0 0;
@h4Margin: 2em 0 0 0;
@h5Margin: 1.25em 0 0 0;
@h6Margin: 1em 0 0 0;

// 引用块默认色样式（与主题配套使用）
@quoteBgDefault: linear-gradient(0deg, var(--d-bc), var(--blockquote-bg));
@quoteBoxShadowDefault: 0 0 0 1px var(--blockquote-bg) inset;

@codeTextColor: @theme3;

// 表格行 hover
@tableTrHoverBg: fade(@aHoverColor, 15%);
@tableTrHoverBgDark: fade(@aHoverColor, 25%);

// 按钮色
@buttonForeColor: @theme3;//@themeForeColor;
@buttonForeHoverColor: #FFFFFF;
@buttonBgColor: var(--ac-t1);//@themeBgColor;
// 文库按钮颜色
@docLibButtonForeColor: @buttonForeColor;
@docLibButtonForeHoverColor: @buttonForeHoverColor;
@docLibButtonBgColor: @buttonBgColor;
// 指定 kbd 按钮风格
.applyKbdRadius(big);

// 链接颜色
@aBorderWidth: 2px;
@aColor: @headerColor;
@aColorDark: @headerColorDark;
@aLineColor: @theme2;
@aHoverColor: @aLineColor;
@aActiveColor: desaturate(@aLineColor, 30%);

// 封面、封底文字位置及对齐方式
@coverTextAlign: left;
@coverTextPadding: 300px 80px 50px;
@coverTextColor: @codeBgColor;
@coverSubColor: @theme3;
@coverUnderlineColor: @theme3;
@coverAuthorColor: @theme3;
@coverOwnerColor: @theme3;

@backCoverTextAlign: left;
@backCoverTextPadding: 300px 80px 50px;
@backCoverTextColor: @theme3;

// 封面装饰性文本样式 before
@coverTextBeforeContent: "";
@coverTextBeforePosition: initial;
@coverTextBeforeLeft: initial;
@coverTextBeforeTop: initial;
@coverTextBeforeColor: initial;
@coverTextBeforeFontSize: initial;
@coverTextBeforeFontWeight: initial;
@coverTextBeforeOpacity: initial;
// 封面装饰性文本样式 after
@coverTextAfterContent: "";
@coverTextAfterTextAlign: initial;
@coverTextAfterLeft: initial;
@coverTextAfterTop: @coverTextBeforeTop;
@coverTextAfterRight: initial;
@coverTextAfterColor: @coverTextBeforeColor;
@coverTextAfterFontSize: @coverTextBeforeFontSize;

// 对比度边框色，用于主题色与背景色对比度比较低时的边缘视觉识别
@contrastBorder: 0 0 0 1px rgba(255, 255, 255, .2) inset;
@contrastBorderForCover: 0 0 0 2px rgba(255, 255, 255, 0.1) inset;

// 封面背景设置
@coverBackgroundColor: @theme1;//@themeBgColor;
@coverBackgroundImage: var(--thm-c-logo), var(--thm-c-link), var(--thm-c-code);
@coverBackgroundSize: 80px 80px, auto, auto;
@coverBackgroundRepeat: no-repeat, no-repeat, repeat-x;
@coverBackgroundPosition: 80px 180px, bottom right, top left;

// 封底背景设置
@backCoverBackgroundColor: @coverBackgroundColor;
@backCoverBackgroundImage: @coverBackgroundImage;
@backCoverBackgroundSize: @coverBackgroundSize;
@backCoverBackgroundRepeat: @coverBackgroundRepeat;
@backCoverBackgroundPosition: @coverBackgroundPosition;

// 文档扩展区域背景
@docExtBackgroundImage: var(--thm-c-code), var(--thm-c-link), var(--thm-doc-ext-bg);
@docExtBackgroundSize: auto, auto, auto;
@docExtBackgroundRepeat: repeat-x, no-repeat, no-repeat;
@docExtBackgroundPosition: left top, right bottom, left top ;

// 封面、封底素材资源
:root {
    --thm-c-logo: url("");
    --thm-c-link: url("");
    --thm-c-code: url("");
}

@import "../base";

// 生成指定风格的徽章样式
.genBadgeStyle(std);

// 生成 GSA 样式
.genGSA_flat();
